.combo-form-page {
  min-height: 100vh;
  background: #f5f5f5;
  display: flex;
  flex-direction: column;
  padding-bottom: 140rpx;
}

.combos-container .weui-navigation-bar,
.combo-form-page .weui-navigation-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
}

.form-scroll {
  flex: 1;
  padding: 0 24rpx 40rpx;
  box-sizing: border-box;
  /* 确保有足够的上边距，避免内容被导航栏遮挡 */
  min-height: 100vh;
}

.first-form-card {
  margin-top: 0rpx !important; /* 移除上边距，最小化空白 */
  padding-top: 0rpx !important; /* 移除额外内边距，减少空白 */
}

.form-card {
  background: #fff;
  border-radius: 16rpx;
  padding: 30rpx;
  margin-bottom: 24rpx;
  box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.05);

  .card-title {
    font-size: 32rpx;
    font-weight: 600;
    margin-bottom: 20rpx;
    color: #333;
  }

  .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20rpx;

    .card-title {
      margin-bottom: 0;
    }

    .card-desc {
      font-size: 24rpx;
      color: #999;
    }
  }
}

.image-upload {
  width: 200rpx;
  height: 200rpx;
  border: 2rpx dashed #d9d9d9;
  border-radius: 20rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;

  .uploaded-image {
    width: 100%;
    height: 100%;
    border-radius: 16rpx;
  }

  .upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;

    .upload-icon {
      font-size: 60rpx;
      margin-bottom: 10rpx;
    }

    .upload-text {
      font-size: 26rpx;
    }
  }
}

.input-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 24rpx;

  .label {
    font-size: 28rpx;
    color: #666;
    margin-bottom: 12rpx;
  }

  .input {
    border: 1rpx solid #e5e5e5;
    border-radius: 12rpx;
    padding: 20rpx;
    font-size: 30rpx;
    background: #f9f9f9;
  }
}

.textarea-group .textarea {
  border: 1rpx solid #e5e5e5;
  border-radius: 12rpx;
  padding: 20rpx;
  min-height: 160rpx;
  font-size: 28rpx;
  background: #f9f9f9;
}

.dual-inputs {
  display: flex;
  gap: 24rpx;

  .input-group {
    flex: 1;
  }
}

.price-wrapper {
  display: flex;
  align-items: center;
  border: 1rpx solid #e5e5e5;
  border-radius: 12rpx;
  background: #f9f9f9;
  padding-right: 20rpx;

  .currency {
    font-size: 30rpx;
    color: #ff4757;
    padding: 0 16rpx;
  }

  .input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 20rpx 0;
  }
}

.combo-products {
  display: flex;
  flex-direction: column;
  gap: 16rpx;
  margin-bottom: 20rpx;
}

.combo-product-item {
  display: flex;
  align-items: center;
  gap: 20rpx;
  background: #f8f9fa;
  border-radius: 16rpx;
  padding: 20rpx;
  position: relative;

  .product-thumb {
    width: 120rpx;
    height: 120rpx;
    border-radius: 12rpx;
    background: #eee;
  }

  .product-info {
    flex: 1;

    .product-name {
      font-size: 30rpx;
      color: #333;
      margin-bottom: 10rpx;
    }

    .product-meta {
      display: flex;
      align-items: center;
      gap: 12rpx;
      font-size: 26rpx;
      color: #666;

      .quantity-input {
        width: 120rpx;
        text-align: center;
        border: 1rpx solid #ddd;
        border-radius: 10rpx;
        padding: 10rpx;
        background: #fff;
      }
    }
  }

  .remove-btn {
    width: 48rpx;
    height: 48rpx;
    border-radius: 50%;
    background: #ff4757;
    color: #fff;
    text-align: center;
    line-height: 48rpx;
    font-size: 30rpx;
  }
}

.add-product-btn {
  width: 100%;
  border: 1rpx dashed #5cb85c;
  border-radius: 12rpx;
  color: #5cb85c;
  background: #f4fbf4;
  padding: 24rpx 0;
  font-size: 28rpx;

  &::after {
    border: none;
  }
}

.form-hint {
  display: block;
  margin-top: 12rpx;
  font-size: 24rpx;
  color: #ff9800;
}

.form-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  padding: 20rpx 30rpx calc(20rpx + env(safe-area-inset-bottom));
  display: flex;
  gap: 20rpx;
  box-shadow: 0 -4rpx 12rpx rgba(0, 0, 0, 0.05);

  .cancel-btn,
  .save-btn {
    flex: 1;
    border: none;
    border-radius: 12rpx;
    font-size: 32rpx;
    padding: 24rpx 0;

    &::after {
      border: none;
    }
  }

  .cancel-btn {
    background: #f5f5f5;
    color: #666;
  }

  .save-btn {
    background: #5cb85c;
    color: #fff;
  }
}

.product-picker-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 40rpx 20rpx;
  box-sizing: border-box;
  z-index: 1200;
}

.product-picker-content {
  width: 100%;
  max-height: 80vh;
  background: #fff;
  border-radius: 24rpx;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.picker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24rpx 30rpx;
  border-bottom: 1rpx solid #f2f2f2;

  .picker-title {
    font-size: 32rpx;
    font-weight: 600;
  }

  .picker-close {
    font-size: 48rpx;
    color: #999;
    padding: 10rpx;
  }
}

.picker-body {
  flex: 1;
  padding: 10rpx 30rpx 30rpx;
  box-sizing: border-box;
}

.picker-item {
  display: flex;
  align-items: center;
  padding: 20rpx 0;
  border-bottom: 1rpx solid #f2f2f2;

  .picker-image {
    width: 90rpx;
    height: 90rpx;
    border-radius: 12rpx;
    margin-right: 20rpx;
    background: #eee;
  }

  .picker-info {
    flex: 1;

    .picker-name {
      font-size: 28rpx;
      color: #333;
    }

    .picker-price {
      font-size: 24rpx;
      color: #ff4757;
      margin-top: 4rpx;
    }
  }

  .picker-check {
    width: 40rpx;
    height: 40rpx;
    border-radius: 50%;
    background: #5cb85c;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26rpx;
  }
}

.picker-empty {
  text-align: center;
  color: #999;
  padding: 60rpx 0;
  font-size: 28rpx;
}


